
export default {
  set:function(name,value,days){
    var d = new Date;
    d.setTime(d.getTime() + 30*60*1000);
    // d.setDate(d.getDate+days);
    window.document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString()
  },
  get:function(name){

    var v = window.document.cookie.match('(^|;)?' + name + '=([^;]*)(;|$)');
    return v ? v[2] : null;
  },
  remove:function(name){
    this.set(name, '', -1);
  }
}
